package com.demo1.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;


@TableName("pet_information")
@Data
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class Pet {

    private Integer id; // 序列号
    @TableField("merchant_id")
    private Integer merchantId; // 商户id
    @TableField("pet_name")
    private String petName; // 宠物名字

    private String age; // 年龄

    private String gender; // 性别
    @TableField("pet_description")

    private String petDescription; // 宠物描述

    private String OrderImage = "default.jpg"; // 宠物图片

    private String price; // 宠物价格
    @TableField("pet_description")

    private String healthCertificate = "default.jpg"; // 宠物健康证明

    @JsonSerialize(using = CustomDateTimeSerializer.class)
    private Data expiration_date; // 宠物健康证明时效
}
